// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

#include <stdint.h>
#include "testing/manifest/manifest_observer_pcr_testing.h"


/**
 * Hash for manifest with ID 0x1, event type 0xaabbccdd, and version 0x0 for testing.
 */
const uint8_t MANIFEST_ID_HASH[] = {
	0x32,0x9a,0x30,0xcd,0xad,0x71,0xf3,0xee,0x8d,0xc6,0xf7,0x6c,0xf2,0xf9,0x6a,0x16,
	0xce,0x2b,0x56,0xa7,0x77,0x70,0xe5,0x29,0xd2,0xc9,0x46,0x71,0x09,0x52,0xcd,0x9a
};

/**
 * Length of the test manifest hash with ID 0x1.
 */
const uint32_t MANIFEST_ID_HASH_LEN = sizeof (MANIFEST_ID_HASH);

/**
 * Hash for testing no manifest with event type 0xaabbccdd and version 0x0.
 */
const uint8_t NO_MANIFEST_ID_HASH[] = {
	0xbf,0xa1,0x8b,0xeb,0x32,0x20,0xbe,0x09,0xd8,0xb6,0x62,0xa7,0xd9,0x08,0x8e,0x21,
	0x7b,0x4e,0x0e,0x96,0x32,0x37,0x98,0x72,0x0c,0xc5,0xe6,0x5c,0xba,0xf8,0x3c,0x65
};

/**
 * Length of the no manifest hash.
 */
const uint32_t NO_MANIFEST_ID_HASH_LEN = sizeof (NO_MANIFEST_ID_HASH);

/**
 * Hash for testing an empty buffer.
 */
const uint8_t EMPTY_BUFFER_HASH[] = {
	0xe3,0xb0,0xc4,0x42,0x98,0xfc,0x1c,0x14,0x9a,0xfb,0xf4,0xc8,0x99,0x6f,0xb9,0x24,
	0x27,0xae,0x41,0xe4,0x64,0x9b,0x93,0x4c,0xa4,0x95,0x99,0x1b,0x78,0x52,0xb8,0x55
};

/**
 * Hash digest for testing an empty buffer with event type 0xaabbccdd and version 0x0.
 */
const uint8_t EMPTY_BUFFER_HASH_DIGEST[] = {
	0x9e,0x31,0x88,0xc5,0x96,0x4b,0xc0,0x22,0x7f,0x09,0x30,0x4e,0x3e,0xde,0x84,0xb8,
	0x1e,0xe8,0x8d,0x55,0x2d,0xa1,0x35,0x59,0x35,0xfb,0x32,0xe5,0x56,0xf7,0xab,0xc7
};

/**
 * Length of an empty buffer hash.
 */
const uint32_t EMPTY_BUFFER_HASH_LEN = sizeof (EMPTY_BUFFER_HASH);

/**
 * Hash digest for testing a 32 byte zero buffer with event type 0xaabbccdd and version 0x0.
 */
const uint8_t ZERO_BUFFER_HASH[] = {
	0x8c,0x0d,0x4f,0x7c,0x11,0x35,0x2b,0xb0,0x2c,0x0d,0x02,0xe8,0x8f,0xce,0xa2,0x0c,
	0x59,0xc4,0xe4,0xa1,0xae,0xf1,0x11,0xd9,0x24,0x8b,0x6d,0x3a,0x57,0xfc,0x2a,0x22
};

/**
 * Length of a zero buffer hash.
 */
const uint32_t ZERO_BUFFER_HASH_LEN = sizeof (ZERO_BUFFER_HASH);

/**
 * Hash for testing a manifest with an empty string platform identifier, event type 0xaabbccdd, and
 * version 0x0.
 */
const uint8_t EMPTY_STRING_HASH[] = {
	0x6f,0x61,0x6e,0xe6,0xbb,0xe4,0x0b,0xeb,0xf4,0xf8,0x00,0x6b,0xba,0x55,0xb2,0x36,
	0x65,0xde,0x39,0xcb,0xf2,0xdc,0x5e,0xef,0x76,0xb2,0x6e,0x4b,0xec,0xf3,0x4b,0x61
};

/**
 * Length of the hash for a manifest with an empty string platform identifier.
 */
const uint32_t EMPTY_STRING_HASH_LEN = sizeof (EMPTY_STRING_HASH);
